package com.itheima.d4_abstract_template_method.example;

/*
    讲师
 */
public class Teacher extends People {
        private String skill;

    public Teacher() {
    }

    public Teacher(String name, int age, String skill) {
        super(name, age);
        this.skill = skill;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }


    @Override
    public void work() {
        System.out.println("我的主要工作是教授" + skill);
    }
}
